﻿<%@ Page Title="Reservas de hóspedes particulares" Language="C#" MasterPageFile="~/Site.Master"
    AutoEventWireup="true" CodeBehind="ListarReservasParticulares.aspx.cs" Inherits="TCC_Hotel.Apresentacao.Reservas.ListarReservasParticulares" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <script src="../../Scripts/Mascaras.js" type="text/javascript"></script>
    <script src="../../Scripts/jquery-1.7.2.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p class="title-telas">
        Reservas de hóspedes particulares</p>
    <asp:CheckBox Text="Mostrar apenas reservas que não houve o check-in" ID="ckbFuturas"
        runat="server" AutoPostBack="True" OnCheckedChanged="ckbFuturas_CheckedChanged"
        Checked="True" /><br />
    <asp:TextBox onkeyup="formataTexto(this,event,'Aaa');" ID="txtBusca" runat="server"></asp:TextBox>
    <asp:Button ID="btnBusca" runat="server" Text="Buscar" OnClick="btnBusca_Click" />
    <asp:Button ID="btnLimpar" runat="server" Text="Limpar" OnClick="btnLimpar_Click" />
    <asp:Button ID="btnMapa" runat="server" Text="Mapa de reservas" class="Buttons_Cadastro"
        OnClick="btnMapa_Click" />
    <asp:GridView ID="grdReservasParticular" runat="server" AutoGenerateColumns="False"
        CellPadding="4" Width="100%" OnRowCommand="grdReservasParticular_RowCommand"
        AllowPaging="True" BackColor="White" BorderColor="#3366CC" BorderStyle="None"
        BorderWidth="1px" OnPageIndexChanging="grdReservasParticular_PageIndexChanging"
        PageSize="15" OnRowDataBound="grdReservasParticular_RowDataBound">
        <Columns>
            <asp:BoundField DataField="ID" HeaderText="ID">
                <ItemStyle HorizontalAlign="Center" Width="10px" />
            </asp:BoundField>
            <asp:BoundField DataField="Nome_Reserva" HeaderText="Hóspede">
                <ItemStyle HorizontalAlign="Center" />
            </asp:BoundField>
            <asp:BoundField HeaderText="CPF" DataField="CPF_Reserva">
                <ItemStyle HorizontalAlign="Center" Width="95px" />
            </asp:BoundField>
            <asp:BoundField DataField="RG_Reserva" HeaderText="RG">
                <ItemStyle HorizontalAlign="Center" Width="80px" />
            </asp:BoundField>
            <asp:BoundField DataField="Numero_Apartamento" HeaderText="Apto">
                <ItemStyle HorizontalAlign="Center" Width="10px" />
            </asp:BoundField>
            <asp:BoundField HeaderText="Data inicial" DataField="Data_Inicio" DataFormatString="{0:dd/MM/yyyy}">
                <ItemStyle Font-Overline="False" HorizontalAlign="Center" Width="70px" />
            </asp:BoundField>
            <asp:BoundField HeaderText="Data final" DataField="Data_Final" DataFormatString="{0:dd/MM/yyyy}">
                <ItemStyle HorizontalAlign="Center" Width="70px" />
            </asp:BoundField>
            <asp:ButtonField CommandName="editarReserva" HeaderText="Editar" Text="Editar">
                <ItemStyle HorizontalAlign="Center" Width="40px" />
            </asp:ButtonField>
            <asp:ButtonField CommandName="detalharReserva" HeaderText="Detalhes" Text="Detalhes">
                <ItemStyle HorizontalAlign="Center" Width="5px" />
            </asp:ButtonField>
            <asp:ButtonField HeaderText="Cancelar" Text="Cancelar" CommandName="cancelarReserva">
                <ItemStyle HorizontalAlign="Center" Width="5px" />
            </asp:ButtonField>
            <asp:ButtonField CommandName="efetuarCheckIn" HeaderText="Check-in" Text="Check-in">
                <ItemStyle HorizontalAlign="Center" Width="85px" />
            </asp:ButtonField>
        </Columns>
        <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
        <HeaderStyle BackColor="#4B6C9E" Font-Bold="True" ForeColor="white" BorderColor="#4B6C9E"
            BorderStyle="Double" BorderWidth="1px" />
        <PagerSettings LastPageText="&gt;&gt;" Mode="NextPreviousFirstLast" NextPageText="Próximo"
            Position="TopAndBottom" PreviousPageText="Anterior" />
        <PagerStyle BackColor="White" ForeColor="#003399" HorizontalAlign="Center" BorderColor="#4B6C9E"
            BorderStyle="None" />
        <RowStyle BackColor="White" ForeColor="#003399" />
        <SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
        <SortedAscendingCellStyle BackColor="#EDF6F6" />
        <SortedAscendingHeaderStyle BackColor="#0D4AC4" />
        <SortedDescendingCellStyle BackColor="#D6DFDF" />
        <SortedDescendingHeaderStyle BackColor="#002876" />
    </asp:GridView>
    <br />
    <asp:Label ID="lblCheckOut" runat="server" Font-Bold="true"></asp:Label><br />
    <asp:Label ID="lblCheckIn" runat="server" Font-Bold="true"></asp:Label>
    <br />
    <br />
</asp:Content>
